package com.dede.state.component;

import android.content.Context;
import android.support.annotation.Nullable;
import android.view.View;

/**
 * 成功状态
 * @author hsh
 *         2018/1/23 10:17.
 */
public class SuccessComponent extends StateComponent {

    private SuccessComponent() {
    }

    public SuccessComponent(View rootView, Context context, @Nullable StateComponent.ReloadListener reloadListener) {
        super(rootView, context, reloadListener);
    }

    @Override
    protected int getLayoutId() {
        return 0;
    }

    public void show() {
        getRootView().setVisibility(View.VISIBLE);
    }

    public void hide() {
        getRootView().setVisibility(View.INVISIBLE);
    }

}
